(Freplace_match): Adjust the match-data more
authorDavid Kastrup <dak@gnu.org>
Wed, 23 Jun 2004 19:22:25 +0000 (19:22 +0000)
committerDavid Kastrup <dak@gnu.org>
Wed, 23 Jun 2004 19:22:25 +0000 (19:22 +0000)
commit80d71c6dbcc126cef74c60f99b98cd779de1136c
tree69a3c40c5b476c68dcd69312c46b5d8d1956da00
parent34b080fd6a71326066c0f69c04f4802c65d18b3a
(Freplace_match): Adjust the match-data more
thoroughly when replacing strings in the buffer.
search.c (match-data): When INTEGERS is non-nil and the last match
was in a buffer, add the buffer as last element to the match data.
(Fset_match_data): If an additional element of the match-data is
a buffer, restore it to last_thing_searched.
(save_search_regs): Save last_thing_searched as part of the match
data.
(restore_match_data): Restore it again.
src/search.c